package com.yh.modules.data.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 错误类型
 * 
 */
@Data
@TableName("tb_ok_type")
public class OkTypeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Integer id;
	/**
	 * ok详情
	 */
	@NotBlank(message = "ok详情不能为空")
	private String description;
	/**
	 * 机器id
	 */
	@NotNull(message = "机器id不能为空")
	private Integer machineId;

	/**
	 * 排序号
	 */
	private Integer sort;


}
